package com.tea.feign;

import com.tea.common.dto.DiscountCouponAddDto;
import com.tea.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "TeaLeafUserServer",contextId = "discountcoupon")
public interface DiscountCouponService {

    @PostMapping("/server/discountcoupon/add.do")
    R add(@RequestBody DiscountCouponAddDto dto);
    @GetMapping("/server/discountcoupon/sel.do")
    R sel();
}
